import * as React from 'react';
import classNames from 'classnames';

export interface AffixProps {
	children?: React.ReactNode;
	className?: string;
}

const Affix: React.FC<AffixProps> = props => {
	const prefixCls = 'bh-affix';
	const {
		children,
		className,
		...restProps
	} = props;
	const classString = classNames(
		prefixCls,
		className,
	);

	return (
		<div {...restProps} className={classString}>
		    {children}
		</div>
	)
};

export default Affix;